<!--#layout("/common/mallout.html",{"jsBase":"/js/order/orderPay/"}){ -->

<link rel="stylesheet" href="http://ziyunoss.oss-cn-hangzhou.aliyuncs.com/pop/mall/style/order.css">
<div class="section">
	<div class="payment_box">
    	<div class="payment-section-title">支付订单</div>
        <div class="payment-method-con">
        	<div class="order-info-fl-01">
            	<i></i>
            </div>
            <div class="order-info-fr-01">
            	<h2>您的订单已经支付成功！</h2>
                <p id="payOrderId"></p>
                <p id="ordercount"></p>
                <p id="shipAddr"></p>
                <p id="payableAmount"></p>
            </div>
        </div>
    </div>
    <!-------------------------------->
    <div class="payment_present"> 
    	<a href="/order/orderInfo/lookOrders.do" >查看订单并上传文件</a> 
    	<a href="/index.do" target="_blank" style="background:none; color:#6647b2;">继续购物</a>
    </div>
      <input type="hidden" id="orderId" value="${orderId}">
    <!--------------------------------->
</div>                 
<!--#} -->
<script>

//layui.use(['paymentSucess'], function(){
//  var quoteOrderPaySuccess = layui.paymentSucess
//   quoteOrderPaySuccess.init();
//});



var orderId=$("#orderId").val();
doAjax('/order/orderPay/getPayOrderInfo.json', 'post', {'orderId':orderId}, function (data) {
	if(data.code=='200'){
		var orderResultDto= data.data;
		if(orderResultDto.payStatus!="1"){
			 $.alert('error','支付不成功,如您已确定完成支付,请联系客服');
			 window.location.href="/index.do";
		}else{
			var payOrderId="<label>订单号：</label>"+orderId;//
			//	var ordercount="<label>商品数量：</label><strong>"+orderResultDto.orderItem.length+" </strong>";//
				var shipAddr="<label>收货信息：</label>"+orderResultDto.shipAddr+"(收件人："+orderResultDto.shipName+":"+orderResultDto.shipMobile+")";//
				var payableAmount="<label>订单金额：</label><strong><font class='price'>￥<strong>"+orderResultDto.payableAmount+"</strong></font>元</strong>";//
				$("#payOrderId").append(payOrderId);
			//	$("#ordercount").append(ordercount);
				$("#shipAddr").append(shipAddr);
				$("#payableAmount").append(payableAmount);
		}
		
	}



})


</script>



